package offer.day1;

public class No2Singleton {

    private static class SingletonHolder{
        private static No2Singleton ourInstance=new No2Singleton();
    }


    public synchronized static No2Singleton getInstance(){
        return SingletonHolder.ourInstance;
    }

    private No2Singleton(){

    }


}


